package com.tan.androidtest.customview;

import android.widget.TextView;

import com.tan.androidtest.R;
import com.tan.androidtest.base.BaseActivity;

/**
 * 测试自定义view
 */

public class TestCustomViewActivity extends BaseActivity {

    //private ObjectAnimator mObjectAnimator;

    @Override
    public int initLayoutId() {
        return R.layout.activity_test_custom_view_layout;
    }

    @Override
    public void initTitle(TextView tv_bar_left, TextView tv_bar_title, TextView tv_bar_right) {
        tv_bar_title.setText("测试自定义view");
    }

    @Override
    public void initView() {
       /* DemoViewTest dv_demo = findViewById(R.id.dv_demo);
        mObjectAnimator = ObjectAnimator.ofFloat(dv_demo, "rotateDegree", 0, 60);
        mObjectAnimator.setRepeatCount(ValueAnimator.INFINITE);
        mObjectAnimator.setRepeatMode(ValueAnimator.REVERSE);
        mObjectAnimator.setDuration(2000);
        mObjectAnimator.start();*/

    }

    @Override
    public void initData() {

    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        /*if (mObjectAnimator != null) {
            mObjectAnimator.end();
            mObjectAnimator = null;
        }*/
    }
}
